﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AnYeCun.Entity.ShareCode;
using AnYeCun.DataAccess.ShareCode;

namespace AnYeCun.Business.ShareCode
{
    public class ShareCodeManager
    {
        public static bool SaveShareCodeClass(ShareCodeClassEntity shareCode)
        {
            return ShareCodeClassDB.Save(shareCode);
        }

        public static List<ShareCodeClassEntity> GetAllShareCodeClass()
        {
            var pageCount = 0;
            return ShareCodeClassDB.Search("", 0, 0, out pageCount);
        }

        public static ShareCodeClassEntity GetByShareCodeClassId(long classID)
        {
            return ShareCodeClassDB.GetByShareCodeClassId(classID);
        }
    }
}
